package org.window;

import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.*;
import javafx.stage.Stage;

public class PaneControllerAndHBoxState {
    public static HBox hBox = new HBox();
    public static void init(){
        hBox.setPrefWidth(500);
        hBox.setPrefHeight(30);
        hBox.setLayoutY(661);
        hBox.setStyle("-fx-background-color: #E6E6E6");
        hBox.setSpacing(5);
//        hBox.setBackground(new Background(new BackgroundImage(new Image("bgk.jpg"), BackgroundRepeat.NO_REPEAT ,BackgroundRepeat.REPEAT, BackgroundPosition.CENTER, BackgroundSize.DEFAULT)));
        hBox.getChildren().addAll(
                PaneControllerAndHBoxStateAndText.text,
                PaneControllerAndHBoxStateAndTextValues.text,
                PaneControllerAndHBoxStateAndButtonUpdateMemory.button,
                PaneControllerAndHBoxStateAndButtonSponsorship.button,
                PaneControllerAndHBoxStateAndButtonAbout.button
        );
        hBox.setAlignment(Pos.CENTER_LEFT);
        PaneControllerAndHBoxStateAndText.init();
        PaneControllerAndHBoxStateAndTextValues.init();
        PaneControllerAndHBoxStateAndButtonUpdateMemory.init();
        PaneControllerAndHBoxStateAndButtonAbout.init();
        PaneControllerAndHBoxStateAndButtonSponsorship.init();
    }
}
